package day02;

public class DoubleDemo {
    public static void main(String[] args) {
        //double 双精度浮点型，占用8个字节，小数默认为double，
        //可能发生舍入误差
        double a=3.14;
        float b=3.14F;

        double c=3.0,d=2.9;
        System.out.println(c-d);//0.10000000000000009，可能发生舍入误差

        double e=4,f=2.1;
        System.out.println(e-f);//1.9

        double g=6,h=4.9;
        System.out.println(g-h);//1.0999999999999996
    }
}
